package com.dq.Week1.day02;

import java.util.Scanner;

public class SwitchDemo {
    public static void main(String[] args) {

        int number;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入手机按键");
        number = scanner.nextInt();
        switch (number){
            case 1:
                System.out.println("查询请按1");
                break;
            case 2:
                System.out.println("查询话费");
                break;
            case 5:
                System.out.println("充值");
                break;
            case 0:
                System.out.println("转人工");
                break;
            default:
                System.out.println("输入错误");
        }
    }
}
